package com.wimcorp.magic.abilities.trigger;

import javax.persistence.Entity;

import com.wimcorp.magic.abilities.Ability;

@Entity
public class OnUpkeepPlayer extends AbilityTrigger {
	public OnUpkeepPlayer() {
	}

	public OnUpkeepPlayer(Ability ability) {
		super(ability);
	}
	
	public OnUpkeepPlayer(OnUpkeepPlayer abilityTrigger) {
		super(abilityTrigger);
	}

	@Override
	public void register() {
		getAbility().getPlayer().getBeginningPhase().registerUpkeepObserver(getAbility());
		
	}
	
	@Override
	public void unRegister() {
		getAbility().getPlayer().getBeginningPhase().unRegisterUpkeepObserver(getAbility());
		
	}
	
	public OnUpkeepPlayer clone() {
		return new OnUpkeepPlayer(this);
	}
}
